#pragma once

#ifdef _WIN32_WCE
#error "CDHtmlDialog is not supported for Windows CE."
#endif 

// CDlgWelcom dialog

class CDlgWelcom : public CDHtmlDialog
{
	DECLARE_DYNCREATE(CDlgWelcom)

public:
	CDlgWelcom(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgWelcom();
// Overrides
	HRESULT OnButtonOK(IHTMLElement *pElement);
	HRESULT OnButtonCancel(IHTMLElement *pElement);

	HRESULT OnButtonSetAccount(IHTMLElement *pElement);

// Dialog Data
	enum { IDD = IDD_DLGWELCOM, IDH = IDR_HTML_DLGWELCOM };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	void SaveProfile();
	virtual void OnNewWindow2(LPDISPATCH* ppDisp, BOOL* Cancel);

	DECLARE_EVENTSINK_MAP()
	DECLARE_MESSAGE_MAP()	
	DECLARE_DHTML_EVENT_MAP()
public:
	virtual void OnDocumentComplete(LPDISPATCH pDisp, LPCTSTR szUrl);
	afx_msg void OnClose();
};
